<?php
namespace App\Utils\Other\Message\Sms;

use App\Utils\Other\Message\App;

Class Chuanglan extends App {

    public function send($mobile, $msg)
    {
        $config = $this->getConfig();
        $postArr = [
            'account' => $config['account'],
            'password' => $config['password'],
            'msg' => $msg,
            'phone' => $mobile,
            'report' => 'true'
        ];
        return $this->request($postArr);
    }

    /**
     * 获取配置
     * @return mixed
     */
    protected function getConfig()
    {
        $this->appConfig = $this->config['chuanglan'];
        return $this->appConfig;
    }
}